<{extend name="public/base"}>
<{block name="foot_source"}>
<script type="text/javascript" src="/static/webuploader/webuploader.js"></script>
<link rel="stylesheet" type="text/css" href="/static/webuploader/webuploader.css">
<{/block}>
<{block name="content"}>
<!-- left column -->
<div class="col-md-12">
    <!-- general form elements -->
    <div class="box box-primary">
        <div class="box-header with-border">
            <h3 class="box-title"><{$title}></h3>
        </div>
        <!-- /.box-header -->
        <!-- form start -->
        <form role="form" action="<{:url('admin/navigation/handle')}>" method="post">
            <div class="box-body">
                <div class="form-group">
                    <label for="title">栏目名称</label>
                    <input type="text" class="form-control" id="title" name="title"  value="<{$model.title}>" placeholder="输入栏目名称">
                </div>
                <div class="form-group">
                    <label for="url">链接</label>
                    <select name="permission" class="form-control" id="url">
                        <{volist name="permission" id="item"}>
                        <option value="<{$item.url}>" <{if condition="$model.permission eq $item.url"}>selected<{/if}>  ><{$item.title}>----------<{$item.group}></option>
                        <{/volist}>
                    </select>
                </div>
                <div class="form-group">
                    <label for="icon">栏目图标</label>
                    <input type="text" class="form-control" id="icon" name="icon" value="<{$model.icon}>" placeholder="输入图标代码">
                </div>
                <div class="form-group">
                    <label for="pid">上级</label>
                    <select name="pid" class="form-control" id="pid">
                        <option value="0">根目录</option>
                        <{volist name="firstLevel" id="item"}>
                        <option value="<{$item.id}>" <{if condition="$model.pid eq $item.id"}>selected<{/if}> ><{$item.title}></option>
                        <{/volist}>
                    </select>
                </div>
                <div class="form-group">
                    <label for="sort">排序</label>
                    <input type="text" class="form-control" id="sort" name="sort" value="<{$model.sort}>" placeholder="输入排序数字 数字越大越靠前">
                </div>

                <input type="hidden" value="<{$model.id}>" name="id" />

            </div>
            <!-- /.box-body -->

            <div class="box-footer">
                <button type="submit" class="btn btn-primary">提交</button>
                <a href="<{:url('admin/navigation/index')}>" class="btn btn-warning">返回列表</a>
            </div>
        </form>
    </div>
    <!-- /.box -->
</div>


<{/block}>

